import Layout from "@/layout";
import levels from "@/views/levels";
const sortingRouter = {
  path: "/sorting/startone",
  component: Layout,
  redirect: "noRedirect",
  name: "sorting",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "分拣管理",
    abbre: "分拣",
    icon: "left_menu_sorting",
    navigation: "/sorting",
    id: "407"
  },
  children: [
    {
      path: "/sorting/startone",
      component: () => import("@/views/sorting/sortingStartone"),
      name: "sorting_startone",
      hidden: false,
      meta: {
        title: "商品分拣",
        noCache: true,
        navigation: "/sorting/startone",
        icon: "menu_big_data"
      }
    },
    {
      path: "/sorting/startetwo",
      component: () => import("@/views/sorting/sortingStartetwo"),
      name: "sorting_startetwo",
      hidden: false,
      meta: {
        title: "用户分拣",
        noCache: true,
        navigation: "/sorting/startetwo",
        icon: "menu_big_data"
      }
    },
    {
      path: "/sorting/monitoring",
      component: () => import("@/views/sorting/sortingMonitoring"),
      name: "sorting_monitoring",
      hidden: false,
      meta: {
        title: "分拣监控",
        noCache: true,
        navigation: "/sorting/monitoring",
        icon: "menu_big_data"
      }
    },
    {
      path: "/sorting/record",
      component: () => import("@/views/sorting/sortingRecord"),
      name: "sorting_record",
      hidden: false,
      meta: {
        title: "分拣记录",
        noCache: true,
        navigation: "/sorting/record",
        icon: "menu_big_data"
      }
    },
    {
      path: "/sorting/processPlan",
      component: levels,
      name: "process_goods",
      hidden: false,
      meta: {
        title: "商品加工",
        noCache: true,
        navigation: "/sorting/processPlan",
        icon: "menu_big_data"
      },
      children: [
        {
          path: "/sorting/processPlan",
          component: () => import("@/views/sorting/processPlan"),
          name: "process_plan",
          hidden: true,
          meta: {
            title: "加工计划",
            noCache: true,
            navigation: "/sorting/processPlan",
            icon: "menu_big_data"
          }
        },
        {
          path: "/sorting/processOrder",
          component: () => import("@/views/sorting/processOrder"),
          name: "process_order",
          hidden: true,
          meta: {
            title: "加工单",
            noCache: true,
            navigation: "/sorting/processPlan",
            icon: "menu_big_data"
          }
        },
        {
          path: "/sorting/processOrder/see/:id",
          component: () => import("@/views/sorting/processOrder_see"),
          name: "process_order_see",
          hidden: true,
          meta: {
            title: "加工单",
            bread: "加工单,查看",
            noCache: true,
            navigation: "/sorting/processPlan",
            icon: "menu_big_data",
            treeMenuHidden: true
          }
        },
        {
          path: "/sorting/processCraft",
          component: () => import("@/views/sorting/processCraft"),
          name: "process_craft",
          hidden: true,
          meta: {
            title: "加工工艺",
            noCache: true,
            navigation: "/sorting/processPlan",
            icon: "menu_big_data"
          }
        }
      ]
    }
  ]
};

export default sortingRouter;
